package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * @author lyw
 * @date 2019-09-04 11:40:51
 */
public class MidResultModel implements Serializable {

    private String midUWFlag;

    private String uwReson;

    private List<ResultListModel> result;

    public String getMidUWFlag() {
        return midUWFlag;
    }

    public void setMidUWFlag(String midUWFlag) {
        this.midUWFlag = midUWFlag;
    }

    public String getUwReson() {
        return uwReson;
    }

    public void setUwReson(String uwReson) {
        this.uwReson = uwReson;
    }

    public List<ResultListModel> getResult() {
        return result;
    }

    public void setResult(List<ResultListModel> result) {
        this.result = result;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        MidResultModel that = (MidResultModel) o;

        return new EqualsBuilder()
                .append(midUWFlag, that.midUWFlag)
                .append(uwReson, that.uwReson)
                .append(result, that.result)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(midUWFlag)
                .append(uwReson)
                .append(result)
                .toHashCode();
    }

    @Override
    public String toString() {
        return "MidResultModel{" +
                "midUWFlag='" + midUWFlag + '\'' +
                ", uwReson='" + uwReson + '\'' +
                ", result=" + result +
                '}';
    }
}
